package org.helgoboss.obr_facade

object ResourceId {
    def apply(symbolicName: String, version: String) = new ResourceId(symbolicName, osgify(version))
    
    private def osgify(version: String) = {
        org.apache.maven.shared.osgi.LightDefaultMaven2OsgiConverter.cleanupVersion(version)
    }
}

class ResourceId private(val symbolicName: String, val version: String) {
    override def toString = symbolicName + ":" + version
}
